package org.helgoboss.mucommander

import java.io.File
import org.helgoboss.scala_additions.currentRichRuntime
import org.helgoboss.file_manager.FileManager
import sys.process._

class Mucommander(val exeFile: File, val configDir: Option[File]) extends FileManager {
    def open(leftDir: Option[File] = None, rightDir: Option[File] = None) {
        val cmd = new MucommanderCommand(exeFile = exeFile, configDir = configDir, leftDir = leftDir, rightDir = rightDir)
        cmd.components.run
    }
}